]> dgit.raspbian.org Git - gnome-shell.git/commit
st-clipboard: Add trailing 0 to pasted text
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 9 Sep 2019 15:43:17 +0000 (17:43 +0200)
committerCarlos Garnacho <mrgarnacho@gmail.com>
Mon, 9 Sep 2019 19:04:31 +0000 (19:04 +0000)
commit8d9cae45f9a44b47627449c674056767add07af8
tree3e730c9a769608fc4de32912a7bdc7cda8738905
parent406d0900a772ebe994fc5074b87e1d7a74faff20
st-clipboard: Add trailing 0 to pasted text

We translate the raw stream content far too directly into a char*,
it notably forgets that the stream does not have nul-ended data,
this means we are potentially adding garbage after the pasted content.

Tentatively fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1570
src/st/st-clipboard.c